package com.wjx.admin_consumer.service;

import com.wjx.admin_consumer.model.Appointment;
import com.wjx.admin_consumer.model.Rating;
import com.wjx.admin_consumer.model.Serve;
import com.wjx.admin_consumer.model.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;


import java.io.IOException;
import java.util.List;
@Component
public class AdminServiceFallback implements AdminService{

    public List<Appointment> queryAllAppointment()   {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public Serve queryServiceById(int id)   {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public User queryUserById(int id)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public Appointment queryAppointmentById(int id)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public Serve queryServiceByName(String serviceName)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public User selectUserByUsername( String username)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public int updateAppointmentById(int id,int userId, int serviceId, String appointmentTime,
                                    String appointmentLocation, String phone, String status,
                                     String lastUpdatedTime) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteRatingByAppointmentId(int id)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteAppointmentById(int id)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public List<Appointment> queryAppointmentByUserId(int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Appointment> queryAppointmentByServiceId( int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Appointment> queryLikeAppointment(String keyword) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<User> queryAllUser() {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<User> queryLikeUsername(String keyword) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public int updateUserById(int id,String username,String password,String authority)  {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteAppointmentByUserId(@RequestParam("id") int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteRatingByUserId(@RequestParam("id") int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteUserById(@RequestParam("id") int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public List<Serve> showService() {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Serve> search( @RequestParam("keyword") String keyword) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public int updateServiceById( int id, String name,String description,double  price) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteAppointmentByServiceId( int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteRatingByServiceId(int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int deleteServiceById( int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int insertService(String name, String description, double price) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public List<Rating> queryAllRating() {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Rating> queryRatingByUserId(int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Rating> queryRatingByServiceId(int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public List<Rating> queryLikeRating(String keyword) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return null;
    }
    public int deleteRatingById(int id) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
    public int register(String username,String password,String authority) {
        System.out.println("Hello,我是Hystrix,admin-provider服务出现了异常");
        return 0;
    }
}
